package com.xhsj.user.sms.announcement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.sms.announcement.entity.TbEnterpriseAnnouncementFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 企业公告附件表 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-06-23
 */
@Mapper
public interface TbEnterpriseAnnouncementFileMapper extends BaseMapper<TbEnterpriseAnnouncementFile> {

    List<TbEnterpriseAnnouncementFile> getListFileByUserId(@Param("announcementId") Object announcementId);

    //根据企业id删除企业公告附件
    int removeAnnouncementId(@Param("announcementId") String announcementId);

    //根据id删除企业公告附件
    int removeByfileId(@Param("fileId") String fileId);
}
